|
|
|
|
|
|
|
info = info & "Standard time = UTC + " & tz.StandardBias / 60 & _
" hours" & vbCrLf
info = info & "Daylight time = UTC + " & tz.DaylightBias / 60 & _
" hours" & vbCrLf
info = info & "Standard time name: ???" & vbCrLf
info = info & "Daylight time name: ???" & vbCrLf
lblTimeZone.Caption = info
End Sub |
|
|
|
|
|
|
|
|
Figure P15-1 shows the results of this program on my system (located on the West Coast of the United States). The result for the local time (based on the Bias parameter) is correctan 8-hour difference. But the StandardBias and DaylightBias results don't make sense. |
|
|
|
|
|
|
|
|
1. Fix the program so that the StandardBias and DaylightBias information is read correctly. |
|
|
|
|
|
|
|
|
2. Figure out a way to read the StandardName and DaylightName fields. |
|
|
|
|
|
|
|
|
Figure P15-1:
Typical results of the tz.vbp program |
|
|
|
|
|